<html>
<head>
  <meta charset="utf-8">
  <link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css">
  <script src="../node_modules/mocha/mocha.js"></script>
  <script src="../node_modules/chai/chai.js"></script>
  <script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.18/require.js"></script>
</head>
<body>
<div id="mocha"></div>
<script>
var expect = chai.expect;

mocha.setup('tdd');

require.config({
  baseUrl: 'output'
});

suite('amd loading', function () {
  test('should load multiple exports', function(done) {
    require(['sfx-amd-01'], function(result) {
      expect(result.default).to.eql({ hello: 'world' });
      expect(result.basic).to.be.a('function');
      done();
    });
  });
  test('should load multiple exports', function(done) {
    require(['sfx-amd-02'], function(result) {
      expect(result.default).to.eql({ hello: 'world' });
      expect(result.basic).to.be.a('function');
      done();
    });
  });
});

if (window.mochaPhantomJS)
  mochaPhantomJS.run();
else
  mocha.run();
</script>
</body>
</html>